Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NDocumentView<TDoc,TDocContent,TDocFormat,TDocFormatRegistry,TDocLoadSettings,TDocSaveSettings> Class / CreateOpenFileDialog Method
The document format initially selected in the created open file dialog. If set to null the first available format is selected.
The format registry to use for available formats and others


In This Topic
    CreateOpenFileDialog Method
    In This Topic
    Creates the open file dialog shown by the LoadFromFile methods that do not have a fileName parameter.
    Syntax
    'Declaration
     
    
    Protected Friend Overridable Function CreateOpenFileDialog( _
       ByVal selectedFormat As TDocFormat, _
       ByVal formatRegistry As TDocFormatRegistry _
    ) As NOpenFileDialog
    'Usage
     
    
    Dim instance As NDocumentView(Of TDoc,TDocContent,TDocFormat,TDocFormatRegistry,TDocLoadSettings,TDocSaveSettings)
    Dim selectedFormat As TDocFormat
    Dim formatRegistry As TDocFormatRegistry
    Dim value As NOpenFileDialog
     
    value = instance.CreateOpenFileDialog(selectedFormat, formatRegistry)
    protected internal virtual NOpenFileDialog CreateOpenFileDialog( 
       TDocFormat selectedFormat,
       TDocFormatRegistry formatRegistry
    )

    Parameters

    selectedFormat
    The document format initially selected in the created open file dialog. If set to null the first available format is selected.
    formatRegistry
    The format registry to use for available formats and others
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also